<?php
	include("conn.php");
	$x = $_POST['keyword'];
	$stmt = $db->prepare("select * from file where name like ? or subject like ? or year like ? or uploadtime like ?");
	$stmt->execute(array("%$x%","%$x%","%$x%","%$x%"));
	$x=array();
	while($result= $stmt->fetch(PDO::FETCH_ASSOC))
		$x[] = $result;
	echo json_encode($x);
?>